# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=py3-syncer
_pyname="syncer"
pkgver=2.0.3
pkgrel=1
arch="noarch"
pkgdesc="Async to sync converter"
url="https://pypi.python.org/project/syncer"
license="BSD-3-Clause"
makedepends="
	py3-setuptools
	py3-gpep517
	py3-wheel
	"
checkdepends="
	py3-pytest-runner
	py3-xfail
	"
source="
	$pkgname-$pkgver.tar.gz::https://github.com/miyakogi/syncer/archive/refs/tags/v$pkgver.tar.gz
	"
builddir="$srcdir"/$_pyname-$pkgver
subpackages="$pkgname-pyc"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	PYTHONPATH="$builddir"/src pytest -v
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}
sha512sums="
1b7d5759c3fc87c658a177b621ee350946d0315f045c92d5554023c35f76ed91d80086fc01dc0c3afe13e2cc92c5a0237cce88d0c8863d2efc858af88a4ed7fa  py3-syncer-2.0.3.tar.gz
"
